import { createApp } from 'vue'
import 'virtual:windi.css'
import {router} from '@/router/index'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/reset.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {pinia} from '@/stores/index'
//引入permission.js实现路由守卫
import './Permission'
import 'nprogress/nprogress.css'  // 这个nprogress样式必须引入

const app = createApp(App)
app.use(router);
app.use(ElementPlus);
app.use(pinia);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


app.mount('#app')